import { sequelize } from "../../init";
import { DataTypes } from "sequelize";
import { User } from "./User";
import { MyFileDir } from "./MyFileDirTable";

export const History = sequelize.define(
    "History",
    {
        id: {
            type: DataTypes.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        userId: {
            type: DataTypes.INTEGER,
            allowNull: false,
        },
        fileId: {
            type: DataTypes.INTEGER,
            allowNull: false,
        },
    },
    { freezeTableName: true, paranoid: true }
);


